﻿@using HotLikes.ViewModels.User;
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>@ViewBag.Title</title>
        @Styles.Render("~/Content/css")
    </head>
    <body>
        <header>
          
            @if (!User.Identity.IsAuthenticated)
            {
                            @Html.Partial("_LoginPartial")
            }
            else
            {
                            @Html.Partial("_UserPanelPartial", ViewBag.UserModel as SingleUserViewModel)
            }
        
        </header>
        <div class="content">
            <div class="container">
                @RenderBody()
            </div>
        </div>
        <footer>
            <p> HotLikes &copy; @DateTime.Now.Year </p>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>
